package com.kyzh.core.adapters

import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gushenge.core.beans.Game
import com.kyzh.core.R
import com.kyzh.core.utils.loadImage

class SortChosenAdapter(layout:Int,beans:MutableList<Game>):BaseQuickAdapter<Game,BaseViewHolder>(layout,beans) {
    override fun convert(holder: BaseViewHolder, item: Game) {
        holder.setText(R.id.name,item.name)
        holder.getView<ImageView>(R.id.image).loadImage(item.icon)
    }
}